﻿/**
 * ...
 * @author oxana
 */

package client;

class Item implements INews
{
	private var id		 : UInt;
    private var name     : String;
	private var link     : String;
	private var link_img : String;
	private var chanId   : UInt;
	private var descr    : String;
	private var date     : String;
	private var author   : String;
	
	
	public function new(id : UInt, name: String, link : String, link_img : String, chanId : UInt, descr: String, date : String, author: String) 
	{
		this.id = id;
		this.name = name;
		this.link = link;
		this.link_img = "http://naadb.avafreehost.com/rss.jpg";
		this.chanId = chanId;
		this.descr = descr;
		this.date = date;
		this.author = author;
	}
	
	public function getItemID():UInt {
		return id;
	}
	
	public function getName():String {
		return name;
	}
	public function getLink():String {
		return link;
	}
	public function getLinkImg():String {
		return link_img;
	}
	public function getChanId():UInt {
		return chanId;
	}
	public function getDescr() :String{
		return descr;
	}
	public function getDate() :String{
		return date;
	}
	public function getAuthor() :String{
		return author;
	}
	
}
